<template>
  <div class="doctorCardContainer">
     <div class="leftContent">
        <div class="imgContainer">
          <img src="https://img0.baidu.com/it/u=1387542830,1055135526&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1668445200&t=cd8d0e82098e67ddffa1b833340364d1" alt="">
        </div>
        <div class="info">
          <div class="top">
            <div class="name">测试医生</div>
            <div class="title">主任医师</div>
            <div class="hospital">中国人民医院</div>
          </div>
          <div class="goodAt">
            医生擅长部分内容，哈哈哈，飞啊飞罚恶法厄发文发问范文芳瓦房瓦房发疯法网法网发发
          </div>
        </div>
     </div>
     <div class="btn" @click="askDoc">问医生</div>
  </div>
</template>

<script>
export default {
  name: 'DoctorCard',
  inject: ['parentMsg','parentMethod'],
  methods: {
    askDoc() {
      console.log('this is doctorCard');
      console.log('parrent', this.parentMsg);
      this.parentMethod();
    }
  }
}
</script>

<style lang="scss" scoped src='./index.scss'>

</style>